﻿using HCService.Client;
using System;
using System.Collections.Generic;
using System.Text;

namespace HCService.MsgHandler.SubHandler
{
	class ClientAccountVerifyReq : HandlerBase
	{
		public new string HandleTag = "evt.account.verify";


		public ClientAccountVerifyReq(PackHandlerCenter center) {
			center.RegisterPackHandle(HandleTag, Handle);
		}
		public override void Handle(IClient client, Pack pack)
		{
			Net.Msg.Account account = Net.Msg.Account.Parser.ParseFrom(pack.PackBuffer);
			Console.WriteLine("回传数据");
			account.Userid = 1234567;
			account.State = Net.Msg.Account.Types.LoginState.Successful;
			//account.State = Net.Msg.Account.Types.LoginState.Failed;
			client.Send(HandleTag, account);
		}
	}
}
